package com.mxpio.erp.common.inventory.entity;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.mxpio.erp.common.jpa.model.BizOrderLine;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_INV_TO_LINE")
@Schema(description="调拨单行")
public class TransferOrderLine extends BizOrderLine {

	private static final long serialVersionUID = 1L;
	
	@Transient
	@Schema(description = "已出库数量")
	private BigDecimal actualOutQuantity;
	
	@Transient
	@Schema(description = "已入库数量")
	private BigDecimal actualInQuantity;
	
	@Transient
	@Schema(description = "计划出库数量")
	private BigDecimal planOutQuantity;
	
	@Transient
	@Schema(description = "计划入库数量")
	private BigDecimal planInQuantity;
	
	@Transient
	@Schema(description = "退货计划出库数量")
	private BigDecimal planRejctOutQuantity;
	
	@Transient
	@Schema(description = "退货计划入库数量")
	private BigDecimal planRejctInQuantity;
	
	@Column(name = "MEMO_")
	@Schema(description = "备注")
	private String memo;

}
